//
//  fishpondStatisticsModel.m
//  YuTang
//
//  Created by 葛悦彣 on 2024/7/29.
//

#import "fishpondStatisticsModel.h"


@implementation fishpondOutdoorModel
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{
        @"appPondManageListModelList":[appPondManageListModel class],
        @"appPondTissueStatisticsListModelList":[appPondManageListModel class],
    };
}

- (NSArray <appPondManageListModel *>*)arrayWithRow:(int)row{
    NSMutableArray * array = [NSMutableArray array];
    int i = row * 3;
    for (int count = 0; count < 3; count++) {
        if(self.appPondTissueStatisticsListModelList.count > i){
            [array addObject:self.appPondTissueStatisticsListModelList[i]];
        }
        i++;
    }
    return array;
}
- (void)setMessageArray:(NSArray<SYMessageListModel *> *)messageArray{
    _messageArray = messageArray;
    self.messageCount = 0;

    if(messageArray.count > 0){
        int i = 0 ;
        for (SYMessageListModel * model in messageArray) {
            i += model.num;
        }
        self.messageCount = i;
    }
    NSMutableArray * listArray  = [NSMutableArray array];
    for (SYMessageListModel * model in messageArray) {
        for (SYMessageModel * message in model.models) {
            message.num = model.num;
        }
        [listArray addObjectsFromArray:model.models];
    }
    self.messageListArray = [NSArray arrayWithArray:listArray];
}
@end

@implementation appPondManageListModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"ID":@[@"id"],
    };
}
@end


@implementation appTaskCountModel
@end
@implementation SYMessageListModel
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{
        @"models":[SYMessageModel class],
    };
}
@end

@implementation SYMessageModel
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"ID":@[@"id"],
    };
}
@end
